﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using Ninject;
using Ninject.Modules;
using System.Net.DnsToolkit.Resolver;
using System.Net.DnsToolkit.Configuration;

namespace Resolver.App {
    public class Program {
        static void Main(string[] args) {

            var modules = new NinjectModule[] {
                new ServerResolverModule(),
                new DnsReaderStreamModule(),
                new DnsWriterStreamModule(),
                new DnsWriterJsonModule()
            };

            var kernel = new StandardKernel(modules);
            var resolver = kernel.Get<IResolver>();

            IPAddress address = resolver.Resolv("darkdns.codeplex.com");
            Console.WriteLine(address.ToString());
        
        }
    }
}
